import request from '@/utils/request';
// 单位能力总览模块

// 作为提供方
export function queryDataByProvider(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/orgAbilityOverview/queryDataByProvider',
		method: 'post',
		data: data,
	});
}

// 作为使用方
export function queryDataByUser(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/orgAbilityOverview/queryDataByUser',
		method: 'post',
		data: data,
	});
}

// 能力查询
export function queryAbilityServer(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/abilityServer/queryAbilityServer',
		method: 'post',
		data: data,
	});
}

// 查询能力对应的使用方数、订单量
export function queryDataByAbility(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/orgAbilityOverview/queryDataByAbility',
		method: 'post',
		data: data,
	});
}

// 查询能力对应的API指标数据
export function queryDataIndicator(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/indicatorData/queryDataIndicator',
		method: 'post',
		data: data,
	});
}

// 查询能力对应的API指标数据
export function queryDataFlow(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/indicatorData/queryDataFlow',
		method: 'post',
		data: data,
	});
}

// 查询能力对应的响应量趋势
export function queryDataResponse(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/middle-platform/modules/indicatorData/queryDataResponse',
		method: 'post',
		data: data,
	});
}
